package com.aoxin.model.course;

import java.math.BigDecimal;
import java.util.Date;

import org.joda.time.DateTime;

public class AloneCoursePage {
	/**
	 * key
	 */
	private String key;
	private Integer coursePageId; // 课程包ID

	private String schoolId; // 学校ID

	private String name; // 名称

	private Integer type; // 类型

	private String description; // 描述

	private Integer validity; // 是否长期有效

	private Date salesStartDate; // 销售开始时间

	private Date salesEndDate; // 销售结束时间

	private Date effectiveStartDate; // 课程包有效开始时间

	private Date effectiveEndDate; // 课程包有效结束时间

	private Integer activeNumber; // 有效次数

	private Integer state; // 状态

	private Integer parentId; // 父级编码

	private Integer upDownState; // 上下架状态

	private BigDecimal price; // 价格

	private BigDecimal discountPrice;// 折扣价

	private Date createDate; // 创建时间

	private Integer salesVolume; // 销量

	private Integer hotState; // 是否热门

	private Integer newState; // 是否最新

	private Integer sequence; // 排序
	
    private Integer coursePageIdOther;
    
    private Integer schoolCoursePageId;
    
    private String sales_end_date;
    private String sales_start_date;
    
    private Integer fitAge;
    
    private Integer endAge;
    
    public Integer getFitAge() {
		return fitAge;
	}

	public void setFitAge(Integer fitAge) {
		this.fitAge = fitAge;
	}

	public Integer getEndAge() {
		return endAge;
	}

	public void setEndAge(Integer endAge) {
		this.endAge = endAge;
	}

	private String briefIntroduction;
	
public String getBriefIntroduction() {
		return briefIntroduction;
	}

	public void setBriefIntroduction(String briefIntroduction) {
		this.briefIntroduction = briefIntroduction;
	}

public String getSales_end_date() {
		return sales_end_date;
	}

	public void setSales_end_date(String sales_end_date) {
		this.sales_end_date = sales_end_date;
	}

	public String getSales_start_date() {
		return sales_start_date;
	}

	public void setSales_start_date(String sales_start_date) {
		this.sales_start_date = sales_start_date;
	}

public Integer getSchoolCoursePageId() {
		return schoolCoursePageId;
	}

	public void setSchoolCoursePageId(Integer schoolCoursePageId) {
		this.schoolCoursePageId = schoolCoursePageId;
	}

public Integer getCoursePageIdOther() {
		return coursePageIdOther;
	}

	public void setCoursePageIdOther(Integer coursePageIdOther) {
		this.coursePageIdOther = coursePageIdOther;
	}

private String schoolName;

	public String getSchoolName() {
	return schoolName;
}

public void setSchoolName(String schoolName) {
	this.schoolName = schoolName;
}

	/**
	 * 课程ID
	 */
	private String courseId;

	private String employeeName; // 创建人员
	private Integer employeeId;
	/**
	 * 封面图
	 */
	private String coverPicture;
	/**
	 * 地址
	 */
	private String addr;
	
	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getCoverPicture() {
		return coverPicture;
	}

	public void setCoverPicture(String coverPicture) {
		this.coverPicture = coverPicture;
	}

	public String getEmployeeName() {
		return employeeName;
	}

	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}

	public Integer getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(Integer employeeId) {
		this.employeeId = employeeId;
	}

	public Integer getCoursePageId() {
		return coursePageId;
	}

	public void setCoursePageId(Integer coursePageId) {
		this.coursePageId = coursePageId;
		this.key = String.valueOf(coursePageId);
	}

	public String getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(String schoolId) {
		this.schoolId = schoolId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description == null ? null : description.trim();
	}

	public Integer getValidity() {
		return validity;
	}

	public void setValidity(Integer validity) {
		this.validity = validity;
	}

	public Date getSalesStartDate() {
		return salesStartDate;
	}

	public void setSalesStartDate(Date salesStartDate) {
		this.salesStartDate = salesStartDate;
		this.sales_start_date=new DateTime(salesStartDate).toString("yyyy-MM-dd");
		
	}

	public Date getSalesEndDate() {
		return salesEndDate;
	}

	public void setSalesEndDate(Date salesEndDate) {
		this.salesEndDate = salesEndDate;
		this.sales_end_date=new DateTime(salesEndDate).toString("yyyy-MM-dd");
	}

	public Date getEffectiveStartDate() {
		return effectiveStartDate;
	}

	public void setEffectiveStartDate(Date effectiveStartDate) {
		this.effectiveStartDate = effectiveStartDate;
	}

	public Date getEffectiveEndDate() {
		return effectiveEndDate;
	}

	public void setEffectiveEndDate(Date effectiveEndDate) {
		this.effectiveEndDate = effectiveEndDate;
	}

	public Integer getActiveNumber() {
		return activeNumber;
	}

	public void setActiveNumber(Integer activeNumber) {
		this.activeNumber = activeNumber;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getUpDownState() {
		return upDownState;
	}

	public void setUpDownState(Integer upDownState) {
		this.upDownState = upDownState;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getDiscountPrice() {
		return discountPrice;
	}

	public void setDiscountPrice(BigDecimal discountPrice) {
		this.discountPrice = discountPrice;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getSalesVolume() {
		return salesVolume;
	}

	public void setSalesVolume(Integer salesVolume) {
		this.salesVolume = salesVolume;
	}

	public Integer getHotState() {
		return hotState;
	}

	public void setHotState(Integer hotState) {
		this.hotState = hotState;
	}

	public Integer getNewState() {
		return newState;
	}

	public void setNewState(Integer newState) {
		this.newState = newState;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getCourseId() {
		return courseId;
	}

	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}

	@Override
	public String toString() {
		return "AloneCoursePage{" + "coursePageId=" + coursePageId + ", schoolId='" + schoolId + '\'' + ", name='" + name + '\'' + ", type=" + type + ", description='" + description + '\''
				+ ", validity=" + validity + ", salesStartDate=" + salesStartDate + ", salesEndDate=" + salesEndDate + ", effectiveStartDate=" + effectiveStartDate + ", effectiveEndDate="
				+ effectiveEndDate + ", activeNumber=" + activeNumber + ", state=" + state + ", parentId=" + parentId + ", upDownState=" + upDownState + ", price=" + price + ", discountPrice="
				+ discountPrice + ", createDate=" + createDate + ", salesVolume=" + salesVolume + ", hotState=" + hotState + ", newState=" + newState + ", sequence=" + sequence + ", employeeName='"
				+ employeeName + '\'' + ", employeeId=" + employeeId + '}';
	}
}